package com.aaa.controller.front;

import com.aaa.entity.Goods;
import com.aaa.service.front.ZMRICategoryService;
import com.aaa.service.front.ZMRIGoodsService;
import com.aaa.service.front.ZMRISpecificationService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/front")
@Controller
public class WishListController {

    @Resource
    private ZMRIGoodsService zmrGoodsService;
    @Resource
    private ZMRICategoryService zmrCategoryService;
    @Resource
    private ZMRISpecificationService specificationService;

    /***
     * 愿望清单
     * @param model
     * @return
     */
    @RequestMapping("/wish-list")
    public String wishlist(Model model){
        List<Goods> goodsList = zmrGoodsService.LIST();
        model.addAttribute("goodsList",goodsList);
        return "/front/wish-list";
    }
}
